package com.chen.learnknowledge.dao;

import com.chen.learnknowledge.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EpmloyeeDao {

    Long addEmpOne(Employee employee);

    void addEmps(@Param("employees") List<Employee> employees);

    Employee getEmpById(@Param("id") Integer id);

    Boolean updateEmp(@Param("employee") Employee employee);

    Integer deleteEmpById(@Param("id") Integer id);

    List<Employee> getPageList(@Param("name") String name);
}
